<%@ page language="java" pageEncoding="utf-8"%>

<script type="text/javascript">
	function goFirstIndex(){
		document.getElementById("startIndex").value=0;
		document.forms[0].submit();
	}
	
	function goNextIndex(){
		document.getElementById("startIndex").value=${page.nextIndex};
		document.forms[0].submit();
	}
	
	function goPreviousIndex(){
		document.getElementById("startIndex").value=${page.previousIndex};
		document.forms[0].submit();
	}
	
	function goLastIndex(){
		document.getElementById("startIndex").value=${page.lastIndex};
		document.forms[0].submit();
	
	}
</script>
<html:hidden property="pageSize" value="${page.pageSize}"/>
<html:hidden property="startIndex" value="${page.startIndex}" />
第<bean:write name="page" property="currentPage"/>页&nbsp;共<bean:write name="page" property="pageCount"/>页&nbsp;
<logic:equal name="page" property="startIndex" value="0" >

首页&nbsp;&nbsp;上一页
</logic:equal>
<logic:notEqual name="page" property="startIndex" value="0" >
<a href="javascript:goFirstIndex()">首页</a>&nbsp;&nbsp;<a href="javascript:goPreviousIndex()">上一页</a>
</logic:notEqual>

<logic:equal name="page" property="startIndex" value="${page.lastIndex}">
下一页&nbsp;&nbsp;末页
</logic:equal>
<logic:notEqual name="page" property="startIndex" value="${page.lastIndex}" >
<a href="javascript:goNextIndex()">下一页</a>&nbsp;&nbsp;<a href="javascript:goLastIndex()">末页</a>
</logic:notEqual>

